package com.qnbc.mystery.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.qnbc.mystery.mapper.WinRecordMapper;
import com.qnbc.mystery.domain.WinRecord;
import com.qnbc.mystery.service.IWinRecordService;

/**
 * 开奖记录Service业务层处理
 *
 * @author guzj
 * @date 2024-03-04
 */
@Service
public class WinRecordServiceImpl implements IWinRecordService {
    @Autowired
    private WinRecordMapper winRecordMapper;

    /**
     * 查询开奖记录
     *
     * @param id 开奖记录主键
     * @return 开奖记录
     */
    @Override
    public WinRecord selectWinRecordById(Long id) {
        return winRecordMapper.selectWinRecordById(id);
    }

    /**
     * 查询开奖记录列表
     *
     * @param winRecord 开奖记录
     * @return 开奖记录
     */
    @Override
    public List<WinRecord> selectWinRecordList(WinRecord winRecord) {
        return winRecordMapper.selectWinRecordList(winRecord);
    }

    /**
     * 新增开奖记录
     *
     * @param winRecord 开奖记录
     * @return 结果
     */
    @Override
    public int insertWinRecord(WinRecord winRecord) {
        return winRecordMapper.insertWinRecord(winRecord);
    }

    /**
     * 修改开奖记录
     *
     * @param winRecord 开奖记录
     * @return 结果
     */
    @Override
    public int updateWinRecord(WinRecord winRecord) {
        return winRecordMapper.updateWinRecord(winRecord);
    }

    /**
     * 批量删除开奖记录
     *
     * @param ids 需要删除的开奖记录主键
     * @return 结果
     */
    @Override
    public int deleteWinRecordByIds(Long[] ids) {
        return winRecordMapper.deleteWinRecordByIds(ids);
    }

    /**
     * 删除开奖记录信息
     *
     * @param id 开奖记录主键
     * @return 结果
     */
    @Override
    public int deleteWinRecordById(Long id) {
        return winRecordMapper.deleteWinRecordById(id);
    }
}
